/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.sys.entity.user;

import com.thinkgem.jeesite.modules.hk.sys.entity.user.HkUser;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 用户产品运费模板Entity
 * @author 罗天文
 * @version 2018-06-20
 */
public class HkUserProductAreaFreight extends DataEntity<HkUserProductAreaFreight> {
	
	private static final long serialVersionUID = 1L;
	private HkUser user;		// 用户
	private HkUserProductFreight freight;		// 运费id 父类
	private String piece;		// 件
	private String money;		// 金额
	private String addPiece;		// 增加件
	private String addMoney;		// 增加金额
	private String provinceId;		// 省
	
	public HkUserProductAreaFreight() {
		super();
	}

	public HkUserProductAreaFreight(String id){
		super(id);
	}

	public HkUserProductAreaFreight(HkUserProductFreight freight){
		this.freight = freight;
	}

	public HkUser getUser() {
		return user;
	}

	public void setUser(HkUser user) {
		this.user = user;
	}
	
	@Length(min=0, max=32, message="运费id长度必须介于 0 和 32 之间")
	public HkUserProductFreight getFreight() {
		return freight;
	}

	public void setFreight(HkUserProductFreight freight) {
		this.freight = freight;
	}
	
	@Length(min=0, max=11, message="件长度必须介于 0 和 11 之间")
	public String getPiece() {
		return piece;
	}

	public void setPiece(String piece) {
		this.piece = piece;
	}
	
	@Length(min=0, max=11, message="金额长度必须介于 0 和 11 之间")
	public String getMoney() {
		return money;
	}

	public void setMoney(String money) {
		this.money = money;
	}
	
	@Length(min=0, max=11, message="增加件长度必须介于 0 和 11 之间")
	public String getAddPiece() {
		return addPiece;
	}

	public void setAddPiece(String addPiece) {
		this.addPiece = addPiece;
	}
	
	@Length(min=0, max=11, message="增加金额长度必须介于 0 和 11 之间")
	public String getAddMoney() {
		return addMoney;
	}

	public void setAddMoney(String addMoney) {
		this.addMoney = addMoney;
	}
	
	@Length(min=0, max=2000, message="省长度必须介于 0 和 2000 之间")
	public String getProvinceId() {
		return provinceId;
	}

	public void setProvinceId(String provinceId) {
		this.provinceId = provinceId;
	}
	
}